package name.hankc.spring;

import org.springframework.beans.factory.BeanFactory;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import name.hankc.spring.bean.Person;
import name.hankc.spring.bean.Cat;

public class QuickstartBasicDIApplication {
  public static void main(String[] args) throws Exception {
    BeanFactory beanFactory = new ClassPathXmlApplicationContext("basic_di/inject-set.xml");
    Person person = beanFactory.getBean(Person.class);
    System.out.println(person);

    Cat cat = beanFactory.getBean(Cat.class);
    System.out.println(cat);
  }
}